package com.domain.simple;

import lombok.*;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;

/**
 * Sample domain class.
 *
 * @author hcj
 */
// dont use the id ,to identity
@Data
@EqualsAndHashCode(callSuper=false)
@Document
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Person extends Contact {
	private String firstname;
	private String lastname;
	private String email;
	private LocalDate birthday; // ISO("1995-03-11") ?
	private Integer age;  // mapping -> int32
	private LocalDateTime createdAt; // DATE_TIME   ?ISO("1995-03-11T00:00:00Z")
	private List<String> skills; //  array[] ?  .  or use the String[] ?
	private UUID uniqueId; //  uuid or  Object or String  ? use the toString ?
	private String comment;



}